import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from './api/http'
import VueTypedJs from 'vue-typed-js'
 
Vue.use(VueTypedJs)
//引入markdown插件
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
Vue.use(mavonEditor)

import ElementUI, { Message } from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

import dayjs from 'dayjs'
Vue.prototype.$dayjs = dayjs

//把ElMessage和axios挂载到vue实例对象的prototype上
Vue.prototype.$message = Message
Vue.prototype.$axios = axios

Vue.config.productionTip = false

const vm = new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
console.log(vm)
